import { post } from "@/utils/http";

const API={
    LOGIN_URL : '/auth/login',
} as const ;

interface LoginParams {
    username: string
    password: string
    captcha: string
}


function loginApi(data:LoginParams):Promise<any>{
    return post(API.LOGIN_URL,data)
}

export{loginApi}